import Vue from 'vue'
import Router from 'vue-router'
import genKey from './genKey'
import testDevice from './test_device'

Vue.use(Router)
export default new Router({
  base: '/testdevice.html#/',
  routes: [
    {
      path: "/",
      redirect: "/test"
    },
    {
      path: '/genkey',
      redirectTo: 'genkey',
      component: genKey
    },
    {
        path: '/test',
        name: 'test',
        component: testDevice
    }
  ]
})
